/**
 * @author (Jeff Thomas) 
 * @version (09.13.2007)
 */
public class PrintColumns
{
    public static void main(String[] args) {
        printColumns(8,5);
    }
    
    public static void printColumns(int a, int b) {
        for (int i = 1; i <= a; i++) {
            System.out.print(i);
            for (int j = 1; j <= b; j++) {
                System.out.print(" ");
            }
        }
    }
}